package com.etone.smartAudit.vo.workOrder;

import com.etone.smartAudit.domain.work.WorkOrder;
import com.etone.smartAudit.domain.work.WorkRectify;
import com.etone.smartAudit.domain.work.WorkRectifyCheck;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author 张任豪
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "工单详情")
public class WorkOrderDetailVO {

    WorkOrder workOrder;

    List<WorkRectify> workRectifies;

    WorkRectifyCheck rectifyCheck;

    @ApiModelProperty(value="审核流程")
    private List<LogVO> logVOS;

    @ApiModelProperty(value="责任人电话")
    private String chargeManTel;

    @ApiModelProperty(value="相关责任人电话")
    private String chargeRelateManTel;

    @Data
    @AllArgsConstructor
    @Builder
    public static class LogVO{

        @ApiModelProperty(value="流程步骤")
        private String flowStep;

        @ApiModelProperty(value="审核人员")
        private String auditMan;

        @ApiModelProperty(value="审核时间")
        private Date auditTime;

        @ApiModelProperty(value="下一步流程")
        private String nextFlow;

        @ApiModelProperty(value="备注")
        private String remark;

    }
}
